package org.book.service.impl;

import org.book.dao.UserMapper;
import org.book.model.User;
import org.book.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by weican on 2017/7/14.
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByUserName(String userName) {
        User user = new User();
        user.setUserName(userName);
        return userMapper.selectByUser(user);
    }
}
